<!--
 * @Author: ruins
 * @Date: 2022-01-17 09:59:05
 * @LastEditors: ruins
 * @LastEditTime: 2022-01-18 15:48:08
 * @FilePath: \white-dragon\public\index.html
-->
<!DOCTYPE html>
<html lang="">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
    <title>
        <%= htmlWebpackPlugin.options.title %>
    </title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        #loading {
            display: flex;
            min-height: 100vh;
            overflow: hidden;
            justify-content: center;
            align-items: center;
            background: #010b10;
        }

        svg {
            width: 0;
            height: 0;
        }

        .loading {
            width: 200px;
            height: 200px;
            position: relative;
            filter: url(#gooey);
        }

        .loading span {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: block;
            animation: loading 4s ease-in-out infinite;
            /* var函数用来插入css变量的值，css变量名称以--开头 */
            animation-delay: calc(0.2s * var(--i));
        }

        .loading span::before {
            content: '';
            position: absolute;
            top: 0;
            left: calc(50% - 20px);
            width: 40px;
            height: 40px;
            background: linear-gradient(#fce4ec, #03a9f4);
            border-radius: 50%;
            box-shadow: 0 0 30px #03a9f4;
        }

        @keyframes loading {
            0% {
                transform: rotate(0deg);
            }

            50%,
            100% {
                transform: rotate(360deg);
            }
        }
    </style>
</head>

<body>
    <noscript>
        <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
                Please enable it to continue.</strong>
    </noscript>
    <div id="app"></div>
    <div id="loading">
        <div class="loading">
            <span style="--i:1"></span>
            <span style="--i:2"></span>
            <span style="--i:3"></span>
            <span style="--i:4"></span>
            <span style="--i:5"></span>
            <span style="--i:6"></span>
            <span style="--i:7"></span>
        </div>

        <svg>
            <filter id="gooey">
                <feGaussianBlur in="SourceGraphic" stdDeviation="10" />
                <!-- feColorMatrix 用于彩色滤光片转换 -->
                <feColorMatrix values="
              1 0 0 0 0
              0 1 0 0 0
              0 0 1 0 0
              0 0 0 20 -10
    " />
            </filter>
        </svg>
    </div>
    <!-- built files will be auto injected -->
</body>

</html>
